package com.zwx.service;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 文希
 * @create 2020-02-12 22:21
 */
@Service
public class UserService {

    @Resource
    private SendEmailService sendEmailService;

    public String doLogin() {
        System.out.println("1");
        // 1.登录认证  5s
        System.out.println("登陆中*****");
        // 2.通知用户处于登录状态【你在登录】  4s
        String s = sendEmailService.sendEmail();
        System.out.println("3");
        return "用户登录:" + s;
    }
}
